package com.lagou.io;

import java.io.InputStream;

/**
 * @author dcwu5
 * @date 2020-05-23
 * @description
 */
public class Resource {

    /**
     * 获得配置的输入流
     * @param path
     * @return
     */
    public static InputStream getResourceAsStream(String path) {
        InputStream resourceAsStream = Resource.class.getClassLoader().getResourceAsStream(path);
        return resourceAsStream;
    }

}
